Repository navigation
Closed
Conversation
The editor signs in through Logto now, so the Google Identity Services hand-off and PUBLIC_GOOGLE_CLIENT_ID have no callers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The editor posts its ID token on every panel remount and token refresh. A changed token still signs in, and a rejected one can be retried. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Visit the preview URL for this PR (updated for commit b18df85): https://profile-cloud-dev--pr190-auth-oidc-0he4ha1o.web.app (expires Thu, 17 Dec 2026 16:08:56 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 2a004f867edf1347070dd9beedb18755187a6d4e |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
Closing unmerged. The Firebase bridge is dropped: Profile Cloud moves to its own backend, which verifies the editor's Keycloak ID token directly. Nothing here ships. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Profile Cloud has no sign-in UI of its own. The editor signs in to Keycloak and posts
{ event, providerId: "oidc", idToken }into the web component;src/lib/stores.tssigns that ID token into Firebase through theoidc.is-auth(production) oroidc.is-auth-dev(development) provider. The bridge is console-side: those providers point at the Keycloak issuer (https://<host>/realms/intechstudio) and client idgrid-editor, so every Firebase uid stays as it is and no code here knows the identity provider.This branch removes the old Google sign-in path and makes the token hand-off idempotent:
A refreshed ID token is a new token, so each editor refresh signs in to Firebase again (one
signInWithIdpper refresh, about every 4 minutes per open editor with the current 5-minute access token).Evidence
/authorizewith Google Identity Services and agrid-editor://?credential=deep link back to the editor.oidc.is-auth-devpointed at it and a local development build of this branch:oidc.is-auth-dev.nonce,pictureor name claims;signInWithIdp200, panel signed in; a token refresh keeps it signed in; editor sign-out signs Profile Cloud out.grep -rni "authorize\|GoogleAuth\|GOOGLE_CLIENT" srcis empty;buildandbuild:webcomponentpass.Merge Danger
Door: one-way for released editors. Editors before the rework open
<profileCloudUrl>/authorizefor Google sign-in, which this removes.Hold until the auth cutover: deploy together with the editor release (stage 2), after the
oidc.is-authprovider in theprofile-cloudconsole points athttps://auth.intech.studio/realms/intechstudio.Blast Radius: sign-in from released editors.
Local testing: the editor mounts
<profile-cloud-prod>for a plain URL, so build withWEB_COMPONENT_NAME=profile-cloud-prod PUBLIC_APP_ENV=development npm run build:webcomponent.npm run buildemptiespublic/, includingpublic/wc.🤖 Generated with Claude Code